// import request from '@/utils/request'
// export function login(data) {
//   return request({
//     url: 'sys/login',
//     method: 'post',
//     data
//   })
// }

import request from '@/utils/request'

// 登录
export const loginAPI = (data) => request.post('/sys/login', data)

// 获取用户信息
export const getUserInfoAPI = () => request.get('/sys/profile')

// 修改用户密码
export const updatePasswordAPI = (data) => request.put('/sys/user/updatePass', data)

